package com.xhd.util;

import java.util.Vector;

public class ThreadMgr {
	private static Vector xthreads = new Vector(32);

	public static void registerThread(XThread paramCPCThread) {
		xthreads.add(paramCPCThread);
	}

	public static Vector getThreads() {
		return xthreads;
	}

	public static void stopThreads() {
		int i = xthreads.size();
		for (int j = 0; j < i; ++j) {
			XThread localCPCThread = (XThread) xthreads.get(j);
			if (localCPCThread.stop)
				continue;
			localCPCThread.interrupt();
		}
	}
}
